package com.boot.common;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.util.AntPathMatcher;
import org.springframework.util.PathMatcher;

@SpringBootApplication
public class A08CommonApplication {

    public static void main(String[] args) {
        test();

        SpringApplication.run(A08CommonApplication.class, args);
    }

    public static void test() {

        PathMatcher pathMatcher = new AntPathMatcher();
        String requestPath="http://192.168.199.1:1400/hmy-service-member/t/1";//请求路径
        String patternPath="**/**member**/**";//路径匹配模式
        patternPath = "**/tt/**";
        boolean result = pathMatcher.match(patternPath, requestPath);
        System.out.println(result);

    }



}
